function signOut() {
    $.ajax({
        type: "get",
        url: "{{url('admin/signOut')}}",
        success: function(res) {
            if (res.status == 'success') {
                layer.msg(res.msg, {
                    icon: 1
                }, function() {
                    window.location.href = res.data.url
                });
            } else {
                layer.msg(res.msg, {
                    icon: 2
                });
            }
        }
    });
}

function addHtml(title, url, w, h) {
    layer_show(title, url, w, h);
}

